Skip to main content

mobileSensorAvailable

Type​

function

Summary​

Returns the availability of the given sensor.

Syntax​

mobileSensorAvailable(<sensor>)

Description​

Use the mobileSensorAvailable function to find out if a sensor is available.

The mobileSensorAvailable function returns the availability of the named sensor.

Parameters​

NameTypeDescription

sensor

enum

The name of the sensor

Examples​

get mobileSensorAvailable("location")
put mobileSensorAvailable("heading") into tHeadingSensorAvailable

Value​

NameTypeDescription

return

Returns true is the sensor is available, false otherwise.

command: mobileStopTrackingSensor, mobileStartTrackingSensor

function: mobileSensorReading

Compatibility and Support​

Introduced

LiveCode 5.5

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?